package com.woniu.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/test")
public class TestController {



    @GetMapping("/index")
    public String toIndex(Model model){

        return "index";

    }

    @GetMapping("/list")
    public String tolist(Model model){

        return "course_list";

    }

    @GetMapping("/detail")
    public String todetail(Model model){

        return "course_detail.html";

    }


}
